Marked Ranges

Permitted Context: %text
Content Model: Empty!

Pairs of MARK elements are used to indicate a marked range, e.g. for the change bars, matches to search patterns, and annotation selections (what text the annotation applies to). Each range is indicated by a pair of MARK elements, the first with a BEGIN attribute and the second with a matching END attribute. The use of paired empty elements with matching id/idref values is needed to allow for marked ranges which cross structural boundaries. Use the CLASS attribute to distinguish different kinds of ranges, e.g. class=changed, class=search or class=annotation.

For example:

This sentence includes a <MARK CLASS=SEARCH BEGIN=mk1>small
marked range<MARK END=mk1>.
<MARK CLASS=CHANGED BEGIN=mk2><H2>Family Fun Night</H2>

<P>Have you tried our Family Fun Night yet? If you value prime family
time, then why not come along to our <i>disguises</i> evening being
held on Friday March 31st at 6.30 pm in the Methodist Hall, Back Street.
<MARK END=mk2>

Permitted Attributes

BEGIN
An SGML identifier used to name the marked range. Identifiers are NAME tokens and must be unique within the scope of the current document.
END
This must match the BEGIN attribute of a preceding MARK element, and is used to denote the end of a marked range.
CLASS
This a space separated list of SGML NAME tokens and is used to subclass tag names. By convention, the class names are interpreted hierarchically, with the most general class on the left and the most specific on the right, where classes are separated by a period. The CLASS attribute is most commonly used to attach a different style to some element, but it is recommended that where practical class names should be picked on the basis of the element's semantics, as this will permit other uses, such as restricting search through documents by matching on element class names. The conventions for choosing class names are outside the scope of this specification.